package school;

import java.util.Calendar;
import java.util.Date;

public class DateHelper {
	
	private static Calendar clndr = Calendar.getInstance();
	public static long millsADay = 1000*60*60*24;
	
	
	public static Date getToday() {
		return getDateFromToday(0);
	}
	
	//not daylight saving time compatible
	public static Date getDateFromToday(int offSet) {
		clndr.setTimeInMillis(System.currentTimeMillis() + millsADay*offSet);
		return clndr.getTime();
	}

}
